package com.system.elastic.goods.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;

import java.util.List;


@FeignClient(value = "seckill")
public interface GoodFeign {

    /***
     * Sku数量加载
     * @return
     */
    @PostMapping(value = "/seckill/good/count" )
    Integer count();

    /***
     * Sku分页条件加载
     * @param page
     * @param size
     * @return
     */
    @GetMapping(value = "/seckill/good/list/{page}/{size}" )
    List list(@PathVariable(value ="page") Integer page, @PathVariable(value = "size")Integer size);
}
